/*
* Copyright (c) 2011 Vivien de Saint Pern
*
* Licensed under the GNU GPL, Version 3.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
*     http://www.gnu.org/copyleft/gpl.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.shareproj.datamodel;

import java.util.Date;
import java.util.Set;

/**
 * User of the application
 *
 * @author Vivien de Saint Pern
 *
 */
public class User extends DataModel {

	/**
	 * Real name of the user
	 */
	private String name;

	/**
	 * email of the user -used for login and notification
	 */
	private String email;

	/**
	 * password
	 */
	private String password;

	/**
	 * project list
	 */
	private Set<Project> projectList;

	/**
	 * Date of the last login
	 */
	private Date lastLogin;

	/**
	 * Is the user activated - through email
	 */
	private boolean activated;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Set<Project> getProjectList() {
		return projectList;
	}

	public void setProjectList(Set<Project> projectList) {
		this.projectList = projectList;
	}

	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public boolean isActivated() {
		return activated;
	}

	public void setActivated(boolean activated) {
		this.activated = activated;
	}



}
